<!DOCTYPE html>
<html>
<head>
    <title>选项信息</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}
            <span style="margin-left: 100px; color: red;">{{ countDownTime }}</span>
            <input type="button" class="btn btn-sm btn-warning" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="submitOver" value="确定交卷" style="float: right;margin-top: -5px;"/>
        </div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="row itemrow" v-for="(item,index) in subjectList">
                    <div class="col-md-12">
                        {{ index+1 }}. {{ item.examSubjectEntity.subjectContent }}
                    </div>
                    <div class="col-md-12">
                        <div v-if="item.examSubjectEntity.subjectType == '1'" class="radio" v-for="(oitem,oindex) in item.examOptionEntityList">
                            <label>
                              <input type="radio" v-model="myOptionList[index]" :name="item.examSubjectEntity.subjectId" :value="oindex + 1">
                                {{oitem.optionContent}}
                            </label>
                        </div>
                        <div v-else class="radio">
                            <label>
                                <input type="radio" v-model="myOptionList[index]" :name="item.examSubjectEntity.subjectId" value="0">
                                对
                                <input type="radio" v-model="myOptionList[index]" :name="item.examSubjectEntity.subjectId" value="1">
                                错
                            </label>
                        </div>   
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/exam/myexam.js?_${.now?long}"></script>
<style>
    .itemrow {
        margin-left: 20px;
        border: none;
    }
</style>

</body>
</html>